package com.example.administrator.wallet.model.bean;

import java.util.List;

/**
 * Effect:
 * <p>
 * Author:  CaiYapeng
 * <p>
 * Time  :  2018/7/24.
 */

public class BTCParameterBean {



    /**
     * code : 200
     * data : {"coin_symbol":"BTC","coin_unit":"BTC","balance":0.002871,"exchange_rate":"57484.68","low":"0.00001","high":"0.01","current":"0.0001","unspent":[{"txid":"23525ad8b2472962434c9f26d72be8af292d64ad52bd683dd8dc0632cd6714bc","tx_output_n":1,"value":1200,"value_dec":1.2E-5},{"txid":"a11f06b51d5680c7c6d35ff194da391d0b3451edd6b0f7f3c2583db9c68ac36a","tx_output_n":1,"value":30700,"value_dec":3.07E-4},{"txid":"fae61b574dc62cc3656daf49aab41bbb16b1c1b498fd8b0897abfa50360057ae","tx_output_n":0,"value":30700,"value_dec":3.07E-4},{"txid":"adc2e15ccae0843a989f3e0276c0f51ac7b7404639ec788f15049ea74d2a5692","tx_output_n":0,"value":31000,"value_dec":3.1E-4},{"txid":"76847d1f8006b23da7a1b64367cd4465907934ac45b63148c04da1f2a598d88e","tx_output_n":1,"value":31400,"value_dec":3.14E-4},{"txid":"0ed187647cb8026d977cababdbe1d23b9485fa3e4605c070b6d359d47c4f65f9","tx_output_n":0,"value":31700,"value_dec":3.17E-4},{"txid":"022c5703435994d8be3082dd0c3565a7e8c8606eb54bc59ae2ba330af3a1eb4f","tx_output_n":1,"value":32000,"value_dec":3.2E-4},{"txid":"37df22322727b54c6df78928d8be72c64921834266c68184d5fc2e5643b05701","tx_output_n":0,"value":32700,"value_dec":3.27E-4},{"txid":"f4c50798b7820fcb1431d015962ef86eb1950687828e6886ccb0aa33fb2e4e7d","tx_output_n":0,"value":32700,"value_dec":3.27E-4},{"txid":"024e25aa69b33b9dfac12aecc7571d0ba1e4fa8d5d4e21c783c69640971ef805","tx_output_n":1,"value":33000,"value_dec":3.3E-4}]}
     * message : 提交成功
     */

    private int code;
    private DataBean data;
    private String message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        /**
         * coin_symbol : BTC
         * coin_unit : BTC
         * balance : 0.002871
         * exchange_rate : 57484.68
         * low : 0.00001
         * high : 0.01
         * current : 0.0001
         * unspent : [{"txid":"23525ad8b2472962434c9f26d72be8af292d64ad52bd683dd8dc0632cd6714bc","tx_output_n":1,"value":1200,"value_dec":1.2E-5},{"txid":"a11f06b51d5680c7c6d35ff194da391d0b3451edd6b0f7f3c2583db9c68ac36a","tx_output_n":1,"value":30700,"value_dec":3.07E-4},{"txid":"fae61b574dc62cc3656daf49aab41bbb16b1c1b498fd8b0897abfa50360057ae","tx_output_n":0,"value":30700,"value_dec":3.07E-4},{"txid":"adc2e15ccae0843a989f3e0276c0f51ac7b7404639ec788f15049ea74d2a5692","tx_output_n":0,"value":31000,"value_dec":3.1E-4},{"txid":"76847d1f8006b23da7a1b64367cd4465907934ac45b63148c04da1f2a598d88e","tx_output_n":1,"value":31400,"value_dec":3.14E-4},{"txid":"0ed187647cb8026d977cababdbe1d23b9485fa3e4605c070b6d359d47c4f65f9","tx_output_n":0,"value":31700,"value_dec":3.17E-4},{"txid":"022c5703435994d8be3082dd0c3565a7e8c8606eb54bc59ae2ba330af3a1eb4f","tx_output_n":1,"value":32000,"value_dec":3.2E-4},{"txid":"37df22322727b54c6df78928d8be72c64921834266c68184d5fc2e5643b05701","tx_output_n":0,"value":32700,"value_dec":3.27E-4},{"txid":"f4c50798b7820fcb1431d015962ef86eb1950687828e6886ccb0aa33fb2e4e7d","tx_output_n":0,"value":32700,"value_dec":3.27E-4},{"txid":"024e25aa69b33b9dfac12aecc7571d0ba1e4fa8d5d4e21c783c69640971ef805","tx_output_n":1,"value":33000,"value_dec":3.3E-4}]
         */

        private String coin_symbol;
        private String coin_unit;
        private String balance;
        private String exchange_rate;
        private String low;
        private String high;
        private String current;
        private List<UnspentBean> unspent;

        public String getCoin_symbol() {
            return coin_symbol;
        }

        public void setCoin_symbol(String coin_symbol) {
            this.coin_symbol = coin_symbol;
        }

        public String getCoin_unit() {
            return coin_unit;
        }

        public void setCoin_unit(String coin_unit) {
            this.coin_unit = coin_unit;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getExchange_rate() {
            return exchange_rate;
        }

        public void setExchange_rate(String exchange_rate) {
            this.exchange_rate = exchange_rate;
        }

        public String getLow() {
            return low;
        }

        public void setLow(String low) {
            this.low = low;
        }

        public String getHigh() {
            return high;
        }

        public void setHigh(String high) {
            this.high = high;
        }

        public String getCurrent() {
            return current;
        }

        public void setCurrent(String current) {
            this.current = current;
        }

        public List<UnspentBean> getUnspent() {
            return unspent;
        }

        public void setUnspent(List<UnspentBean> unspent) {
            this.unspent = unspent;
        }

        public static class UnspentBean {
            /**
             * txid : 23525ad8b2472962434c9f26d72be8af292d64ad52bd683dd8dc0632cd6714bc
             * tx_output_n : 1
             * value : 1200
             * value_dec : 1.2E-5
             */

            private String txid;
            private String tx_output_n;
            private String value;
            private String value_dec;

            public String getTxid() {
                return txid;
            }

            public void setTxid(String txid) {
                this.txid = txid;
            }

            public String getTx_output_n() {
                return tx_output_n;
            }

            public void setTx_output_n(String tx_output_n) {
                this.tx_output_n = tx_output_n;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public String getValue_dec() {
                return value_dec;
            }

            public void setValue_dec(String value_dec) {
                this.value_dec = value_dec;
            }

            @Override
            public String toString() {
                return "UnspentBean{" +
                        "txid='" + txid + '\'' +
                        ", tx_output_n=" + tx_output_n +
                        ", value=" + value +
                        ", value_dec=" + value_dec +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "coin_symbol='" + coin_symbol + '\'' +
                    ", coin_unit='" + coin_unit + '\'' +
                    ", balance=" + balance +
                    ", exchange_rate='" + exchange_rate + '\'' +
                    ", low='" + low + '\'' +
                    ", high='" + high + '\'' +
                    ", current='" + current + '\'' +
                    ", unspent=" + unspent +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "BTCParameterBean{" +
                "code=" + code +
                ", data=" + data +
                ", message='" + message + '\'' +
                '}';
    }
}
